home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_nub_jewel.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  73 lines

  1. # Jones 3D Cog Script
  2. #
  3. # nub_Jewel.cog
  4. #
  5. # [TL] [GGJ]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. #
  9. # ========================================================================================
  10. symbols
  11.  
  12. message        startup
  13. message        entered
  14. message        exited
  15.  
  16. thing        player        local
  17. thing        plasma
  18. sector        topSector
  19.  
  20. surface        pad        
  21.  
  22. end
  23.  
  24. # ========================================================================================
  25. code
  26.  
  27. startup:
  28. StartCutscene(1);
  29. Sleep(0.01);
  30. EndCutscene();
  31.  
  32. player = GetLocalPlayerThing();
  33.  
  34. return;
  35.  
  36. # ........................................................................................
  37. entered:
  38.  
  39. if ((GetSenderRef() == pad) && (GetSourceRef() == player)) 
  40. {
  41.     print("Jewel is TRUE...");
  42.     JewelFlyingStatus(1, plasma);
  43. }
  44.  
  45. if (GetSenderRef() == topSector)
  46. {
  47.     JewelFlyingStatus(1, plasma);
  48. }
  49.  
  50. return;
  51.  
  52. # ........................................................................................
  53.  
  54. exited:
  55.  
  56. if ((GetSenderRef() == pad) && (GetSourceRef() == player)) 
  57. {
  58.     print("Jewel is FALSE...");
  59.     JewelFlyingStatus(0, plasma);
  60. }
  61.  
  62. if (GetSenderRef() == topSector)
  63. {
  64.     JewelFlyingStatus(0, plasma);
  65. }
  66.  
  67.  
  68. return;
  69.  
  70. # ........................................................................................
  71. end
  72.  
  73.